package com.weiqiao.api.service;

import com.weiqiao.api.domain.ApiResponseEntity;
import com.weiqiao.api.domain.OrderApiEntity;
import com.weiqiao.api.domain.vo.OrderApiVO;
import com.weiqiao.api.domain.vo.OrderListApiVo;

import java.util.List;

/**
 * @author ChenYF
 * @Description
 * @Date 2020/7/28 15:45
 */
public interface IOrderApiService {

    /**
     * 信用卡下单
     *
     * @param vo
     * @return
     */
    ApiResponseEntity addCardOrder(OrderApiVO vo);

    /**
     * 积分兑换下单
     *
     * @param vo
     * @return
     */
    ApiResponseEntity addIntegralOrder(OrderApiVO vo);

    /**
     * 获取验证码
     *
     * @param companyId 公司id
     * @param user_id   用户id
     * @param phone     电话号
     * @return
     */
    String getPhoneCard(int companyId, int user_id, String phone);

    /**
     * 获取订单列表
     *
     * @param vo
     * @return
     */
    List<OrderApiEntity> getOrderList(OrderListApiVo vo);
}
